[NTG-context] Re: context not producing synctex output that my synctex program can use

2023-11-15 Thread Jim
ng that error message.) I also tried mtxrun --script synctex --goto --page=4 --x=100 --y=100 a.synctex and that silently returns without apparently doing anything. (While I don't have a 'scite' editor, I created a program called 'scite' that pops a message up on the screen if it is called.) Sim

[NTG-context] Re: context not producing synctex output that my synctex program can use

2023-11-12 Thread Hans Hagen
On 11/12/2023 10:26 AM, Henning Hraban Ramm wrote: Am 12.11.23 um 00:59 schrieb Jim: Hi, I've read the wiki, looked at workflows-synctex.tex, searched the web, and scratched my head, all to no avail.  So here I am, cap in hand... When I run context, I get a .synctex file which has some

[NTG-context] Re: context not producing synctex output that my synctex program can use

2023-11-12 Thread Henning Hraban Ramm
Am 12.11.23 um 00:59 schrieb Jim: Hi, I've read the wiki, looked at workflows-synctex.tex, searched the web, and scratched my head, all to no avail. So here I am, cap in hand... When I run context, I get a .synctex file which has some information in it, but I can't find any invocation of

[NTG-context] context not producing synctex output that my synctex program can use

2023-11-11 Thread Jim
Hi, I've read the wiki, looked at workflows-synctex.tex, searched the web, and scratched my head, all to no avail. So here I am, cap in hand... When I run context, I get a .synctex file which has some information in it, but I can't find any invocation of synctex to return anything useful. Nor

[NTG-context] Problems with line numbered program listings

2023-10-04 Thread Bruce Horrocks
I'm trying to typeset some program listings with annotations alongside. I've tried both columns and tabulate but both have (different) issues: 1) Plain \typefile won't allow the line numbers to be in the text - they stay in the margin whch I don't want. 2) \typefile using a \definedtyping name

Re: [NTG-context] check installed program using Lua

2021-11-02 Thread Pablo Rodriguez via ntg-context
On 11/1/21 5:13 PM, Hans Hagen via ntg-context wrote: > On 11/1/2021 2:26 PM, Pablo Rodriguez via ntg-context wrote: >> [...] >> Is there a way to wrap os.exec() in the sample so that it only runs if >> "dir" is available? >> >> I know that os.name would be an option here, but not in my real world

Re: [NTG-context] check installed program using Lua

2021-11-02 Thread Pablo Rodriguez via ntg-context
On 11/1/21 3:10 PM, Taco Hoekwater via ntg-context wrote: >> [...] >> Is there a way to wrap os.exec() in the sample so that it only runs if >> "dir" is available? > > if os.which(‘dir’) then > ... > end > > But note that os.which() may be unreliable in various cases (like it > will fail for

Re: [NTG-context] check installed program using Lua

2021-11-01 Thread Hans Hagen via ntg-context
On 11/1/2021 2:26 PM, Pablo Rodriguez via ntg-context wrote: Dear list, is there a way if a program is installed on the computer using Lua. I have the following sample: \starttext \startluacode filename = tex.jobname .. ".pdf" os.exec("dir " .. filen

Re: [NTG-context] check installed program using Lua

2021-11-01 Thread Taco Hoekwater via ntg-context
> On 1 Nov 2021, at 14:26, Pablo Rodriguez via ntg-context > wrote: > > Dear list, > > is there a way if a program is installed on the computer using Lua. > > I have the following sample: > > \starttext > \startluacode > filename = tex.jobname ..

[NTG-context] check installed program using Lua

2021-11-01 Thread Pablo Rodriguez via ntg-context
Dear list, is there a way if a program is installed on the computer using Lua. I have the following sample: \starttext \startluacode filename = tex.jobname .. ".pdf" os.exec("dir " .. filename) \stopluacode \stoptext Is there a way to wrap os.exec() in the sa

Re: [NTG-context] Including part of a program source file

2018-04-21 Thread Alan Braslau
ffer[range={cmd:two:begin,cmd:two:end}] > \stoptext > > Wolfgang > > N. Raghavendra <mailto:nyraghu27...@gmail.com> > > 21. April 2018 um 16:00 > > I am writing some notes using ConTeXt, which involves displaying > > parts of some program source files. At present, I a

Re: [NTG-context] Including part of a program source file

2018-04-21 Thread N. Raghavendra
At 2018-04-21T17:29:58+02:00, Wolfgang Schuster wrote: > The verbatim commands have a range key which let you select parts of > the code, you can use line numbers to include a small block > (e.g. range={3,10} or range {3,+7}) or you put labels in your code. Many thanks! It works perfectly, with

Re: [NTG-context] Including part of a program source file

2018-04-21 Thread Wolfgang Schuster
,cmd:two:end}] \stoptext Wolfgang N. Raghavendra <mailto:nyraghu27...@gmail.com> 21. April 2018 um 16:00 I am writing some notes using ConTeXt, which involves displaying parts of some program source files. At present, I am manually cutting and pasting the parts into the ConTeXt file. Is it po

[NTG-context] Including part of a program source file

2018-04-21 Thread N. Raghavendra
I am writing some notes using ConTeXt, which involves displaying parts of some program source files. At present, I am manually cutting and pasting the parts into the ConTeXt file. Is it possible to make ConTeXt do that for me? I am thinking of including each part of the Coq sources between tags

[NTG-context] using ConTeXt/LuaTeX instead of a spreadsheet program

2011-02-16 Thread Paul Menzel
of the calculator and enter the results by hand or a spreadsheet program. Would I enter the values (not many) at the top of the TeX document and refer to them in the other places? Is an extra file a better approach? Thanks, Paul [1] http://wiki.contextgarden.net/Programming_in_LuaTeX

Re: [NTG-context] using ConTeXt/LuaTeX instead of a spreadsheet program

2011-02-16 Thread Wolfgang Schuster
with LuaTeX to do all the calculations instead of the calculator and enter the results by hand or a spreadsheet program. Would I enter the values (not many) at the top of the TeX document and refer to them in the other places? Is an extra file a better approach? Do you have a example what do

Re: [NTG-context] using ConTeXt/LuaTeX instead of a spreadsheet program

2011-02-16 Thread Hans Hagen
to do all the calculations instead of the calculator and enter the results by hand or a spreadsheet program. Would I enter the values (not many) at the top of the TeX document and refer to them in the other places? Is an extra file a better approach? I would put them in a lua table and access

Re: [NTG-context] using ConTeXt/LuaTeX instead of a spreadsheet program

2011-02-16 Thread Vnpenguin
measured. I thought I could use ConTeXt with LuaTeX to do all the calculations instead of the calculator and enter the results by hand or a spreadsheet program. Would I enter the values (not many) at the top of the TeX document and refer to them in the other places? Is an extra file a better

Re: [NTG-context] using ConTeXt/LuaTeX instead of a spreadsheet program

2011-02-16 Thread Martin Schröder
2011/2/16 Hans Hagen pra...@wxs.nl: I would put them in a lua table and access them when needed (you can load that table from an external file) Which precision do we have in luatex? Single or double? Best Martin

Re: [NTG-context] using ConTeXt/LuaTeX instead of a spreadsheet program

2011-02-16 Thread Taco Hoekwater
On 02/16/11 23:46, Martin Schröder wrote: 2011/2/16 Hans Hagen pra...@wxs.nl: I would put them in a lua table and access them when needed (you can load that table from an external file) Which precision do we have in luatex? Single or double? double. Best wishes, Taco

Re: [NTG-context] Importing program text.

2010-03-27 Thread Peter Münster
On Fri, Mar 26 2010, John Culleton wrote: I want to import the text of several programs in my latest book. My requirements are: 1. Monospaced font. \setuptyping[style=\tt] 2. Courier or similar typeface I don't know. 3. Smaller than normal typeface (to avoid wraparound.)

[NTG-context] Importing program text.

2010-03-26 Thread John Culleton
I want to import the text of several programs in my latest book. My requirements are: 1. Monospaced font. 2. Courier or similar typeface 3. Smaller than normal typeface (to avoid wraparound.) I have been fiddling with \typefile but I am having trouble accomplishing the above. -- John

[NTG-context] concert program

2009-05-07 Thread R. Bastian
Gruezi, is somewhere a template for a concert program in Context ? a+ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl

Re: [NTG-context] start a program with a particular file

2003-06-12 Thread Adam Lindsay
Sytse Knypstra said this at Thu, 12 Jun 2003 11:12:01 +0200: Let's say I want to start mediaplayer with the file MyMusic.wav. Well, for this specific example, why not \useexternalsoundtrack (core-fig)? Acrobat seems to support a fair number of media types in a cross-platform way, which could get